<?php

if(!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
require_once( "class_3d/CheckMode_3d.php" );
$gametype=intval(getvar("gametype"));
$chk=new CheckMode_3d($curruser['acl'],1,$gametype);
$chk->checkShow3dPage();
unset($chk);
$tbl=$g_gametype_3d[$gametype]['en'];
$tblch=$g_gametype_3d[$gametype]['ch'];
$ui=new UI_3D(true);
$conf=new Config();
$tpl=new Template2();
$tpl->load("main","admin1_3d.htm");
$tpl->set("startbet_3d",$conf->Get("startbet_{$tbl}"));
$tpl->set("stopbet_3d",$conf->Get("stopbet_{$tbl}"));
$tpl->set("message_th",$conf->Get("news_th"));
$tpl->set("news_3d",$conf->Get("news_{$tbl}"));
$tpl->set("news_th_3d",$conf->Get("news_th_{$tbl}"));
$tpl->set("tblch",$tblch);
$tpl->set("gametype",$gametype);
$ui->header();
include( "admin_menu1_3d.php" );
$tpl->show("main");
$ui->footer();